<?php
// vim:set expandtab tabstop=3 shiftwidth=3 softtabstop=3 foldclose=all foldmethod=marker:
/**
 * 项目：   5anet
 * 文件：   class/article/Search.class.php
 *
 * 显示搜索的界面
 *
 * PHP Version 5
 *
 * @package:   class.article
 * @author:    Mike.G Chinese Name: 黄叶 <hylinux@gmail.com>
 * @license:   http://www.gnu.org/copyleft/lesser.html  LGPL License 2.1 
 * @copyright: www.5anet.com
 * @version:   $Id: $
 * @date:      $Date: $
 */

include_once CLASS_PATH.'main/BaseAction.class.php';

//包含我们需要的工具软件包
include_once CLASS_PATH.'article/CategoryUtil.class.php';
include_once CLASS_PATH.'article/ArticleUtil.class.php';
include_once FUNCTION_PATH.'getCurrentDate.fun.php';
include_once FUNCTION_PATH.'getIp.fun.php';


class Search extends BaseAction {

   /**
    * 数据库的连接
    */
   private $db;

   /**
    * 构造函数
    * @param:  NULL
    * @return: NULL
    * @access: public
    */
   public function __construct() {
      $this->db = $this->getDB();
   }



   /**
    * 显示编辑文章的界面
    * @param:  NULL
    * @return: NULL
    * @access: public
    */
   public function run() {

      $smarty = $this->getSmarty();

      //显示头
      $categroy = CategoryUtil::getTopCategory($this->db);
      $smarty->assign('catagroy', $categroy);

      //设置SEO的头
      $smarty->assign('clone_title', '编辑文章'.$article_info['title'].'/5anet.com' );
      $smarty->assign('header_meta_content','编辑文章/5anet.com' );



      $smarty->display('showarticlesearch.tmpl');

   }
}

?>
